<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui" xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
</h:head>
<h:body>
	<!-- 	<f:facet name="last"> -->
	<!-- 		<h:outputStylesheet library="css" name="styles.css" /> -->
	<!-- 	</f:facet> -->
	<p:layout fullPage="true" >
		<p:layoutUnit position="north" size="180" resizable="true" closable="true" collapsible="true" >
			<h:form id="form">
				<h:panelGroup id="panel">
					<div class="topButtons">
						<p:commandButton value="Munkakosár" update="panel :display" id="ajax1" action="#{navigationBean.viewWorkbench}" styleClass="workbench" />
						<p:commandButton value="Ügyfél keresés" update="panel :display" id="ajax2" action="#{navigationBean.viewSearch}" styleClass="search" />
						<p:commandButton value="Új ügyfél" actionListener="#{customerMaintBean.setEditFalse()}" update="panel :display" id="ajax3" action="#{navigationBean.viewNewCustomer}" styleClass="newCustomer" />
						<p:commandButton value="Új felhasználó" update="panel :display" id="ajax4" action="#{navigationBean.viewNewUser}" disabled="#{customerMaintBean.userHasAdminRights()}" styleClass="newUser" />
						<p:commandButton style="float: right;" value="Kijelentkezés" action="#{loginBean.doLogout()}" actionListener="#{navigationBean.viewSearch()}" ajax="false" styleClass="newCustomer" />
						
					</div>
				</h:panelGroup>
			</h:form>
		</p:layoutUnit>
		<p:layoutUnit position="center">
			<h:panelGroup id="display">
				<ui:include src="#{navigationBean.page}" />
			</h:panelGroup>
		</p:layoutUnit>
	</p:layout>
</h:body>
</html>